package cn.cheneyjoo.Model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Order_Detail
 * @author 
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "order_detail")
public class OrderDetail implements Serializable {
    /**
     * 主键ID
     */
    @TableId(type= IdType.AUTO)
    private Integer id;

    /**
     * 订单ID
     */
    private Integer orderId;

    /**
     * 商品ID
     */
    private Integer productId;

    /**
     * 商品数量
     */
    private Integer productCount;

    /**
     * 商品金额
     */
    private Integer productPrice;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;
    /**
     * 商品
     */
    @TableField(exist = false)
    private Product product;

    private static final long serialVersionUID = 1L;
}